247 PHP prior 5.0.2 rfc1867.c file upload CGI 2004/09/20 Marc Ruef marc dot ruef at computec dot ch http://www.computec.ch computec.ch Marc Ruef marc dot ruef at computec dot ch http://www.computec.ch computec.ch 2004/11/14 2.0 Corrected the plugin structure and added the accuracy values in 1.1. Improved the pattern matching and introduced the plugin changelog in 2.0 tcp 80 open|send HEAD / HTTP/1.0\n\n|sleep|close|pattern_exists HTTP/#.# ### *PHP/[0-4].* OR HTTP/#.# ### *PHP/5.0.[0-2]* 80 Check is inspired by the Nessus plugin. Stefano Di Paola stefano dot dipaola at wisec dot it http://www.wisec.it wisec.it 2004/09/15 http://www.securityfocus.com/archive/1/375370 PHP prior 5.0.2 PHP 5.0.2 and newer or other solutions (e.g. CGI or ASP) Configuration The remote system is running a web server with PHP prior 5.0.2. These old versions are vulnerable to a unspecified vulnerability in rfc1867.c that could allow a remote attacker to upload files. If the web server is not used it should be de-installed or de-activated. Install the newest patch or bugfix to solve the problem or upgrade to the latest software version which is not vulnerable anymore. To make it harder to find the server the daemon could be configured to listen at another port (e.g. 8081). Alternation of the application banner can confuse an attacker and let him determine the wrong software. Additionally limit unwanted connections and communications with firewalling. Approx. 45 minutes Maybe http://www.securityfocus.com/bid/11038/exploit/ Yes Yes Medium 6 6 8 7 Medium Nessus is able to do the same check. A proof-of-concept exploit may be available as like Di Paola writes in his Bugtraq posting: "I don't know if releasing a POC for this vuln is a good thing because php is used widely in the net... so if you are interested feel free to contact me." It seems to be just a matter of time when the exploit is available for the public. 11190 14770 Hacking Exposed: Network Security Secrets & Solutions, Stuart McClure, Joel Scambray and George Kurtz, February 25, 2003, 4th Edition, McGraw-Hill Osborne Media, ISBN 0072227427 http://viewcvs.php.net/viewcvs.cgi/php-src/NEWS.diff?r1=1.1247.2.724&r2=1.1247.2.726